﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using FXnaAppBase;

using FXnaWpfBase;

using System.Windows.Controls;


namespace FXnaAppBaseWpf
{
    public class BitMapViewModel:MDTVIViewModel
    {

        public BitMapViewModel(MDTVIViewModel parent,Bitmap image)
            : base(parent)
        {


            this._backImage = image;


            //右键设置

            this._contextMenu = new System.Windows.Controls.ContextMenu();

            MenuItem mi = new MenuItem();

            mi.Header = "删除";

            mi.Command = AppBaseCommands.RemoveImage;

            mi.CommandParameter = this._backImage;

            this._contextMenu.Items.Add(mi);





 

        }




        Bitmap _backImage;

        public Bitmap BackImage
        {
            get { return _backImage; }
            set { _backImage = value; }
        }




        public override string Desc
        {
            get
            {
                return this._backImage.FileNameWithoutExt;
            }
        }




    }


}
